#!/bin/bash
#终端输入数组，计算平均值
sum=0
for i in $*
do
	((sum+=i))
done
echo $((sum/$#))
